package java5.enumeration.part34;

public class PlanetTesst {
   public static void main(String[] args) {
      double earthWeight = Double.parseDouble("10");
      double mass = earthWeight / Planet.EARTH.surfaceGravity();
      //Planet.values()  返回所有声明顺序的列表
      for (Planet p : Planet.values())
          System.out.printf("Weight on %s is %f%n",
                            p, p.surfaceWeight(mass));
      }

   //RoundingMode
}